package com.letoken.platform.repo.mall.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 店铺账户表
 * </p>
 *
 * @author author
 * @since 2023-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_mall_account")
@ApiModel(value="AppMallAccount对象", description="店铺账户表")
public class AppMallAccount extends Model<AppMallAccount> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "店铺ID")
    private Integer mallId;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "账户余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "账户余额CAP")
    @TableField("balanceCAP")
    private BigDecimal balanceCAP;

    @ApiModelProperty(value = "让利值")
    private BigDecimal contributing;

    @ApiModelProperty(value = "保证金")
    private BigDecimal bond;

    @ApiModelProperty(value = "0.正常 1。异常")
    private Integer state;

    @ApiModelProperty(value = "校验和")
    private String checkSum;

    @ApiModelProperty(value = "版本号")
    private Integer version;

//    @ApiModelProperty("收款地址")
//    @TableField("collect_address")
//    private String collectAddress;

    @ApiModelProperty(value = "冻结资金")
    private BigDecimal freeze;

    @ApiModelProperty(value = "冻结资金cap")
    @TableField("freeze_cap")
    private BigDecimal freezeCap;

    @ApiModelProperty(value = "让利值")
    private BigDecimal ecommerceContributing;


    private BigDecimal usdtValue;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
